package cn.seaboot.admin.core.bean;


import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * POJO
 * 系统动态字典 [t_sys_dynamic_dictionary]
 * <p>
 *
 * @author Mr.css on  2019-03-25 11:40
 */
@Schema(description = "系统动态字典 [t_sys_dynamic_dictionary] 实体类")
public class DynamicDictionary implements Serializable {
    private static final long serialVersionUID = 3854994618361758268L;
    /**
     * ID
     */
    @NotNull()
    @Schema(description = "ID")
    private String id;
    /**
     * 事件分类
     */
    @Schema(description = "事件分类")
    private Integer dicType;
    /**
     * 事件名
     */
    @Size(max = 32)
    @Schema(description = "事件名")
    private String eventKey;
    /**
     * 值
     */
    @Size(max = 16)
    @Schema(description = "值")
    private String dicKey;
    /**
     * 名称
     */
    @Size(max = 64)
    @Schema(description = "名称")
    private String dicVal;
    /**
     * 字段描述
     */
    @Size(max = 64)
    @Schema(description = "字段描述")
    private String dicDesc;
    /**
     * 模版，用于生成描述字段
     */
    @Size(max = 64)
    @Schema(description = "模版")
    private String dicTpl;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getDicType() {
        return dicType;
    }

    public void setDicType(Integer dicType) {
        this.dicType = dicType;
    }

    public String getEventKey() {
        return eventKey;
    }

    public void setEventKey(String eventKey) {
        this.eventKey = eventKey;
    }

    public String getDicKey() {
        return dicKey;
    }

    public void setDicKey(String dicKey) {
        this.dicKey = dicKey;
    }

    public String getDicVal() {
        return dicVal;
    }

    public void setDicVal(String dicVal) {
        this.dicVal = dicVal;
    }

    public String getDicDesc() {
        return dicDesc;
    }

    public void setDicDesc(String dicDesc) {
        this.dicDesc = dicDesc;
    }

    public String getDicTpl() {
        return dicTpl;
    }

    public void setDicTpl(String dicTpl) {
        this.dicTpl = dicTpl;
    }

    @Override
    public String toString() {
        return "DynamicDictionary{" +
                "id=" + id +
                ", dicType=" + dicType +
                ", eventKey='" + eventKey + '\'' +
                ", dicKey='" + dicKey + '\'' +
                ", dicVal='" + dicVal + '\'' +
                ", dicDesc='" + dicDesc + '\'' +
                ", dicTpl='" + dicTpl + '\'' +
                '}';
    }
}

